
//上传的内容
var content="abcdefg";
//上传的图片
var picsrc='http://img238.ph.126.net/r4Eg96N6N3serITMaeJAjA==/2222807891085516884.jpg';		
//打开新浪微博网址
function sina() {	
	var s = window.screen;
	var d = document;
	var e = encodeURIComponent;
	var f = 'http://v.t.sina.com.cn/share/share.php?', u = d.location.href, p = [
			'url=', e(u), '&title=', e(content), '&pic=', encodeURIComponent(picsrc),
			'&appkey=1226626340' ].join('');
	function a() {
		if (!window.open(
						[ f, p ].join(''),
						'mb')){
				u.href = [ f, p ].join('');
			}	
	};	
	if (/Firefox/.test(navigator.userAgent))	
	{
		setTimeout(a, 0);
	} else {
		a();
	}	
}